package com.yuanfeng.payment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanfeng.payment.entity.PayUserBaseEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @Entity com.yuanfeng.payment.entity.PayUserBase
 */
@Mapper
public interface PayUserBaseMapper extends BaseMapper<PayUserBaseEntity> {

    /**
     * 密码
     *
     * @param fromUserId
     * @return
     */
    String isPasswd(@Param("fromUserId") String fromUserId);

    /**
     * 校验支付密码是否存在
     * @param paraMap
     * @return
     */
    Integer checkPayPassword(Map<String, String> paraMap);

    /**
     * 修改支付密码
     * @param userId
     * @param passwd
     * @return
     */
    boolean modifyPasswd(@Param("userId")String userId, @Param("passwd")String passwd);

    /**
     * 验证密码是否正确
     * @param userId
     * @param passwd
     * @return
     */
    Integer plusMemberPayPasswd(@Param("userId")String userId, @Param("passwd")String passwd);
}




